home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 10 - 1994 / 10.10 Oct 94 / Sprocket / Interfaces / DialogWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-25  |  933 b   |  54 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DialogWindow.h
  3.  
  4.     Contains:    Interfaces of a base class for Modeless Dialogs
  5.                 
  6.     Written by: Dave Falkenburg
  7.  
  8.     Copyright:    © 1993-94 by Dave Falkenburg, all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.     
  12.     To Do:
  13.  */
  14.  
  15. #ifndef        _DIALOGWINDOW_
  16. #define        _DIALOGWINDOW_
  17.  
  18. #ifndef        _WINDOW_
  19. #include    "Window.h"
  20. #endif
  21.  
  22. #ifndef        __DIALOGS__
  23. #include    <Dialogs.h>
  24. #endif
  25.  
  26. typedef    short    DialogTemplateID;
  27. typedef    short    DialogItemID;
  28.  
  29.  
  30. class    TDialogWindow    :    public    TWindow
  31.     {
  32. private:
  33.     DialogTemplateID    fTemplateID;
  34.     
  35. public:
  36.                         TDialogWindow(DialogTemplateID theDialogTemplate);
  37.     
  38.     virtual    Boolean        EventFilter(EventRecord *theEvent);
  39.  
  40.     virtual WindowPtr    MakeNewWindow(WindowPtr behindWindow);
  41.  
  42.     virtual void        Activate(Boolean activating);
  43.     virtual void        Draw(void);
  44.     virtual void        Click(EventRecord *anEvent);
  45.  
  46.     virtual    void        DoEditMenu(short item);
  47.     
  48. //    New methods:
  49.  
  50.     virtual    void        ItemHit(short theItem);
  51.     };
  52.  
  53. #endif
  54.